<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<h:form id="mainMenu">

		<p:menubar style="margin-bottom:5px;" autoSubmenuDisplay="true">
			<p:menuitem value="#{x['faces.label.label.menu.user']}" ajax="false"
				immediate="true" action="user/userManager" icon="ui-icon ui-icon-person" />
			<p:menuitem value="#{x['faces.button.label.generic.out']}"
				onclick="dlg3.show();" icon="ui-icon ui-icon-close" />
		</p:menubar>

		<p:dialog header="#{x['faces.panel.label.menu.logoff']}"
			widgetVar="dlg3" showEffect="bounce" hideEffect="explode"
			height="200">
			
			<p:spacer height="12px" />
			
			<h:outputLabel value="#{x['faces.link.label.menu.logoff.question']}" />
			<p:commandButton id="logoffButton" style="position:absolute; right:20px; bottom:20px;"
				value="#{x['faces.button.label.generic.confirm.positive']}" 
				immediate="true" ajax="false" action="#{userManager.doLogoff()}" />
		</p:dialog>

	</h:form>
</ui:composition>
